#include <string.h>
#include <stdio.h>
#include "mystring.h"


int myputs(const char *s)
{
	CoreDataOut((char *)s);
	CoreDataSave((char *)s);
	return 0;
}


void myputhex(unsigned int val)
{
	int i, j,index;
	char hexbuff[32] = {0};
	
	index = 0;
	myputs("0x");
	for (i = 7; i >= 0; i--)
	{
		j = (val >> (i*4)) & 0xf;
		if ((j >= 0) && (j <= 9))
			hexbuff[index++] = '0' + j;
		else
			hexbuff[index++] = 'A' + j - 0xA;
	}	
	myputs(hexbuff);

}

void myput_s_hex(const char *s, unsigned int val)
{
	myputs(s);
	myputhex(val);
}

